WP_Defender\Controller\Recaptcha D

Total Complexity 151
Dependencies 9
Dependents 3
Total lines 974
Lines of code 639
Logical lines of code 293
Comment lines 219
Methods 35
Properties 9

Methods 35

Method Rating Maintainability Complexity Lines of code
add_actions()
B
40 18 54
data_frontend()
A
39 13 64
load_recaptcha_preview()
A
35 8 113
display_recaptcha()
A
44 11 45
recaptcha_post_request()
S
50 7 28
validate_captcha_field_on_wpmu_registration()
S
56 7 17
declare_variables()
S
54 6 20
validate_captcha_field_on_login()
S
56 6 20
add_scripts_for_lazy_load()
S
59 6 14
remove_dublicate_scripts()
S
61 6 11
__construct()
S
56 5 17
is_woocommerce_page()
S
61 5 12
get_api_url()
S
62 5 11
display_login_recaptcha()
S
52 3 36
add_scripts()
S
50 3 29
dashboard_widget()
S
61 4 13
recaptcha_response()
S
58 3 15
save_settings()
S
56 2 21
validate_captcha_field_on_comment()
S
67 3 8
validate_captcha_field_on_woo_registration()
S
63 3 10
validate_captcha_field_on_woo_login()
S
63 3 10
validate_captcha_field_on_registration()
S
64 3 10
get_model()
S
70 2 6
validate_captcha_field_on_lostpassword()
S
73 2 5
error_message()
S
70 2 6
display_signup_recaptcha()
S
68 2 7
exclude_recaptcha_for_requests()
S
70 2 5
script_loader_tag()
S
70 2 6
import_data()
S
69 2 7
export_strings()
S
72 2 5
display_comment_recaptcha()
S
74 1 5
script_data()
S
76 1 4
remove_settings()
S
98 1 1
remove_data()
S
82 1 3
to_array()
S
98 1 1